package com.example.cloud.alibaba.seata.storage.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.cloud.alibaba.seata.common.dto.CommodityDTO;
import com.example.cloud.alibaba.seata.common.utils.SimpleMessage;
import com.example.cloud.alibaba.seata.storage.entity.TStorage;

/**
 * 仓库服务
 *
 * * @author lidong
 * @since 2019-09-04
 */
public interface ITStorageService extends IService<TStorage> {

    /**
     * 扣减库存
     */
    SimpleMessage decreaseStorage(CommodityDTO commodityDTO);
}
